package com.example.config.simpleDynamicTask2.job;

import org.springframework.stereotype.Component;

/**
 * 任务即将超期定时检测任务
 * @author ZhengDing
 * @date 2022/3/30 23:13
 */
@Component
public class TaskWillOverDueCheckTask implements Runnable{
    
    public static Boolean isRun = false;
    
    @Override
    public void run() {
        if (isRun) return;
        
        System.out.println("任务即将超期检测 11111111111111111111111111111111111111111111");
        
        isRun = false;
    }
}
